package net.towee.client.event.core;

import net.towee.model.group.GroupIdentity;

import com.google.gwt.event.shared.GwtEvent;

public class GroupAttachedToBoardEvent extends GwtEvent<GroupAttachedToBoardHandler> {
	public static Type<GroupAttachedToBoardHandler> TYPE = new Type<GroupAttachedToBoardHandler>();
	private final GroupIdentity group;

	public GroupAttachedToBoardEvent(GroupIdentity result) {
		this.group = result;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<GroupAttachedToBoardHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(GroupAttachedToBoardHandler handler) {
		handler.onGroupAttachedToBoard(group);
	}

}
